package cn.sdormitory.exam.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author : yy
 * @date: 2024/12/31 11:18
 * @description:
 */
@Data
public class ClassroomTestVo {
    @ApiModelProperty(value="课堂测试主键")
    private Integer id;

    @ApiModelProperty(value="测试名称")
    private String name;

    @ApiModelProperty(value="课程")
    private String courseName;

    @ApiModelProperty(value="章节")
    private String sectionName;

    @ApiModelProperty(value="班级id")
    private String classId;
    @ApiModelProperty(value="班级")
    private String className;

    @TableField(value="remark")
    @ApiModelProperty(value="备注")
    private String remark;

    @ApiModelProperty(value="创建时间")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value="创建人")
    private String createBy;


    @ApiModelProperty(value="班级人数")
    private Integer classNum;
    @ApiModelProperty(value="完成人数")
    private Integer passNum;
    @ApiModelProperty(value="未完成人数")
    private Integer unPassNum;

}
